import API from '../utils/api'

export default {
  // 生成token
  getToken: (params = {}) => API.get('/api/getToken.htm', params),
  // 获取快捷导航配置
  getNavisInfo: (params = {}) => API.get('/api/getQuickNav', params),
  // 获取数据分类配置
  getDataCategory: (params = {}) => API.get('/api/getDataCategory', params),
  // 机器人信息
  getRobotInfo: (params = {}) => API.get('/api/getRobotInfo.htm', params),
  // 人员信息获取
  getUserInfo: (params = {}) => API.get('/api/getUserInfo.htm', params),
  // 查询组织结构
  getOrgTree: (params = {}) => API.get('/workReminder/getOrgTree', params),
  //获取人员角色
  getRoles: (params = {}) => API.get('/api/getRoles.htm', params),
  // 人员权限
  getUserAuth: (params = {}) => API.get('/api/getUserAuth.htm', params),
  // 搜索问答,机器人问答
  getTalkAnswers: (params = {}) => API.post('/qa/search', params),
  // 通过栏目查询
  queryByPath: (params = {}) => API.post('/qa/queryByPath', params),
  // 通过id查询
  queryById: (params = {}) => API.post('/qa/queryById', params),
  // 收藏问答答案
  addFavorite: (params = {}) => API.get('/api/addFavorite', params),
  // 热门问题
  getHotQuestions: (params = {}) => API.get('/api/getHotQuestions.htm', params),
  // 热门搜索
  getSearchQuestions: (params = {}) => API.get('/api/getSearchQuestions.htm', params),
  // 我的足迹
  getFootPrint: (params = {}) => API.get('/footprint/getFootprint', params),
  // 查询工单信息
  queryTaskList: (params = {}) => API.post('/api/work/queryTaskList', params),
  // 查询人员
  queryUsers: (params = {}) => API.post('/ua/queryUsers', params),
  // 查询党组织信息
  queryDepts: (params = {}) => API.post('/ua/queryDepts', params),
  // 根据id查询工单任务信息
  findWorkApplyById: (params = {}) => API.get('/api/work/findWorkApplyById', params),
  // 根据ParentId查询工单任务信息
  findWorkApplyByParentId: (params = {}) => API.get('/api/work/findWorkApplyByParentId', params),
  // 根据id查询工单基本信息
  getTaskByTiid: (params = {}) => API.get('/api/work/getTaskByTiid', params),
  // 获取用印资料类型
  getChapterDocTypes: (params = {}) => API.get('/api/chapter/getChapterDocTypes', params),
  // 办事人 上报接口
  report: (params = {}) => API.post('/api/work/report', params),
  // 党员任务下发(提交按钮)
  submitDraft: (params = {}) => API.post('/api/work/submitDraft', params),
  // 管理员（干事） 审批提交
  submitTask: (params = {}) => API.post('/api/work/submitTask', params),
  // 任务流程办结
  finishConfirm: (params = {}) => API.post('/api/work/finishConfirm', params),
  // 任务流程确认
  confirmSimpleTask: (params = {}) => API.post('/api/work/dealSubTask', params),
  // 部门管理员审批回退
  rejectTask: (params = {}) => API.post('/api/work/rejectTask', params),
  // 任务流程回退
  rejectSimpleTask: (params = {}) => API.post('/api/work/rejectSimpleTask', params),
  // 下一审批人信息
  chapterNextNodeInfo: (params = {}) => API.formSubmit('/api/chapter/nextNodeInfo', params),
  // 用章申请退回
  chapterReject: (params = {}) => API.formSubmit('/api/chapter/chapterReject', params),
  // 获取直属党委负责人
  getZsdwfzr: (params = {}) => API.get('/api/chapter/getZsdwfzr', params),
  // 审批同意
  submitChapterTask: (params = {}) => API.formSubmit('/api/chapter/submitChapterTask', params),
  // 用章申请流程转交任务
  transferChapterTask: (params = {}) => API.formSubmit('/api/chapter/transferTask', params),
  // 提交草稿任务
  submitChapterDraft: (params = {}) => API.formSubmit('/api/chapter/submitDraft', params),
  // 退回起草
  backToDraft: (params = {}) => API.formSubmit('/api/chapter/backToDraft', params),
  // 获取节假日日期
  getHolidays: (params = {}) => API.get('/api/getHolidays', params),
  // 获取待办任务的日期
  findWorkSubTasksByUserId: (params = {}) => API.post('/api/work/findWorkSubTasksByUserId', params),
  // 催办任务
  urgeTask: (params = {}) => API.post('/api/work/urgeTask', params),
  // 查询组织列表
  getCompanyList: (params = {}) => API.get('/sanKe/getCompanyList', params),
  // 三会一课开始巡检
  download: (params = {}) => API.post('/sanKe/download', params),
  // 第一议题开始巡检
  queryByGroup: (params = {}) => API.post('/diYiYiTi/queryByGroup', params),
  // 第一议题巡检结果详细信息
  getInfoById: (params = {}) => API.get('/diYiYiTi/getInfoById', params),
  // 党建服务直通车
  queryPc: (params = {}) => API.get('/directTrainForParty/queryPc', params),
  // 智说查询接口
  getZtcLikeByTitle: (params = {}) => API.post('/directTrainForParty/getZtcLikeByTitle', params),
  // 智说查询接口
  findMeetingDatesByUserId: (params = {}) => API.get('/meeting/findMeetingDatesByUserId', params),
  // 优化建议
  addOptimizeAdvise: (params = {}) => API.formUrlencoded('/api/addOptimizeAdvise.htm', params),
  // 智学下一级标题查询
  queryNextSubjects: (params = {}) => API.post('/api/queryNextSubjects', params),
  // 智学查询根据标题查询详细信息
  queryQaBankBySubject: (params = {}) => API.post('/api/queryQaBankBySubject', params),
  // 党史详细信息查询
  getPartyArticleContent: (params = {}) => API.get('/partycalendartoday/getPartyArticleContent', params),
  //领航选讲
  getPilotPreach: (params = {})=> API.post('/pilotPreach/getPilotPreach', params),
  // 查询省公司工单列表
  queryProvinceWorkList: (params = {}) => API.post('/workReminder/queryProvinceWorkList', params),
  // 查询直属党委下发工单列表
  queryCityWorkList: (params = {}) => API.post('/workReminder/queryCityWorkList', params),
  // 查询支部工单列表
  queryBranchWorkList: (params = {}) => API.post('/workReminder/queryBranchWorkList', params),
  // 查询省公司工作子项工单列表
  queryProvinceSubWorkList: (params = {}) => API.post('/workReminder/queryProvinceSubWorkList', params),
  // 查询直属党委和市公司工作子项子工单列表
  queryCitySubWorkList: (params = {}) => API.post('/workReminder/queryCitySubWorkList', params),
  //查询支部任务工作子项工单列表
  queryBranchSubWorkList: (params = {}) => API.post('/workReminder/queryBranchSubWorkList', params),
  //查询红色交流路线列表
  getRedRouteList: (params = {}) => API.post('/rededu/queryRedRouteList', params),
  //查询红色交流路线详情
  getRedRouteDetail: (params = {}) => API.post('/rededu/queryRedRouteDetail', params),
  //查询红色教育基地列表
  getRedBaseList: (params = {}) => API.post('/rededu/queryRedBaseList', params),
  //查询红色教育基地详情
  getRedBaseDetail: (params = {}) => API.post('/rededu/queryRedBaseDetail', params),
  // 查询创建的会议
  queryMeetingByCreateId: (params = {})=> API.get('/meeting/query-meeting-by-createid', params),
  // 删除会议人员
  deleteTheCheckInPerson: (params = {})=> API.get('/meeting/delete-sign-in-userid', params),
  // 查询参加的会议
  queryJoinMeetingByOaId: (params = {})=> API.get('/meeting/query-join-meeting-by-oaid', params),
  // 查询会议详情
  queryMeetingContent: (params = {})=> API.get('/meeting/query-meeting-content', params),
  // 查询参会二维码
  queryMeetingCode: (params = {})=> API.get('/meeting/query-meeting-code', params),
  // 删除会议
  editMeetingStatus: (params = {})=> API.post('/meeting/edit-meeting-status', params),
  // 手动催办
  urgeHandle: (params = {})=> API.get('/meeting/urge-handle', params),
  // 参会人员详情
  querySignInUserByMeetingId: (params = {})=> API.post('/meeting/query-sign-in-user-by-meetingid', params),
  // 获取未签到的参会人员详情
  querySignInUserBySignInDate: (params = {})=> API.post('/meeting//query-sign-in-user-by-sign-in-date', params),
  // 阅办状态变更
  changeReadType: (params = {})=> API.get('/api/work/changeReadType', params),
}
